
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>

<td class="centerContainer">
    <div class="c1">
        <div class="c2">
            <div class="top"></div>
        </div>
    </div>

    <div class="content">
        <div class="content-wrapper">
            <a name="main"></a>
            <span id="serch_error">
            </span>
            <div id="pageTitle" class="pageTitleSection">
                <div class="block">
                    <div class="cont">
                        <h2><span>Login</span></h2>
                    </div>
                </div>
            </div>
            <div class="accountSection">
                <div class="form">
                    <div class="block">
                        <div class="corner1">
                            <div class="corner2">
                                <div class="lineTop"></div>
                            </div>
                        </div>
                        <div class="cont">
                            <span id="login_error">
                            </span>
                            <form method="POST" action="ProcessServlet" autocomplete="off">
                                <c:set var="error" value="${requestScope.ERROR}"/>
                                <c:set var="username" value="${requestScope.USERNAME}"/>
                                <c:set var="password" value="${requestScope.PASSWORD}"/>
                                <c:if test="${not empty error}">
                                    <div>
                                        <font color="red">Invalid Username or Password!</font>
                                    </div>    
                                </c:if>                                

                                <div class="email">
                                    <label class="requiredParameter">Username
                                        <span class="reqIcon"></span>
                                    </label>
                                    <input class="textInput" name="txtUsername" type="text" value="${username}">
                                </div>

                                <div class="password">
                                    <label class="requiredParameter">Password
                                        <span class="reqIcon"></span>
                                    </label>
                                    <input class="textInput" value="" name="txtPassword" type="password" value="${password}"/>
                                </div>

                                <div class="forgotPassword">
                                    <label>&nbsp;</label>
                                    <a class="link" href="G_RePass_EnterEmail.jsp">Forgot password</a>
                                    <div class="nofloat"></div>                                        
                                </div>
                                <input class="middleBtn rightBtn bigBtn" value="Login" type="submit" name="btAction">
                                <input class="newCustomerBtn leftBtn smallBtn" type="submit" value="Register as new customer" name="btAction">
                            </form>                            
                        </div>
                        <div class="corner4">
                            <div class="corner3">
                                <div class="lineBtm"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="c4">
        <div class="c3">
            <div class="btm"></div>
        </div>
    </div>
</td>